﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<%
    int lang = (int)ViewData["Language"];
    VietImage.Models.Category cat = (VietImage.Models.Category)ViewData["Category"];
    if (cat != null)
    {
%>

<div onclick="movetopage('<%=Url.Action("Detail", "Category", new { id = cat.ID }) %>');" style="cursor:pointer; width:150px; height:200px; margin-left:25px; margin-right:25px; margin-top:25px; margin-bottom:25px; clear:both;">
    <div style="float:left; border: 1px #FFF dotted"><img height="150" width="150" src="/Image/Category/<%= cat.ID %>" alt="" /></div>
    <div style="height:30px; width:150px; margin-top:5px; clear:both; float:left;">
        <div style="float:left;"><img style=" opacity: 0.25; filter: alpha(opacity=25);" src="/Image/Category/<%= cat.ID %>" alt="" width="150" height="30" /></div>
        <div class="fogbutton" style="float:left; margin-left:-150px; vertical-align:bottom;"><div style="padding-top:7px;"><%= cat.GetDetail(lang).Name%></div></div>
    </div>
                            
</div>
<%
    }
 %>
